<%@page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8"%>
<%@include file="/jsp/commons/header.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>销售分析系统</title>
    <script type="text/javascript" src="${ctx}/resources/js/datatable.js"></script>
    <%@ include file="/jsp/commons/meta.jsp"%>
    <script type="text/javascript">
        $(function(){
            $("#sid").focus(function(){
                alert("id不能修改");
                $("#role_name").focus();
            });
            $("#toRoleList").chlik(function(){
            	$("#rolelist").load("${ctx}/role/FindRoleList.htm");
            });
       });
    </script>

</head>
<body>
    <form action="${ctx}/role/updateRole.htm" method="POST"
      id="login_form">
        <table cellpadding="0" cellspacing="0">
            <tbody align="center">
                <div id="rolelist">
                    <tr>
                        <td align="center" colspan="2">
                          <h3>权限修改</h3>
                        </td>
                    </tr>
                    <tr>
                        <td align="right"><div id="tabs_loginId">ID：</div></td>
                        <td align="left"><input type="text" name="sid"
                          id="sid" value="${role.sid }"/></td>
                    </tr>
                    <tr>
                        <td align="right"><div id="tabs_loginId">角色名：</div></td>
                        <td align="left"><input type="text" name="roleName"
                          id="role_name" value="${role.roleName}"></td>
                    </tr>
                    <tr>
                        <td align="right"><div id="tabs_loginId">权限：</div></td>
                        <td align="left"><input type="text" name="comments"
                          id="role_comments" value="${role.comments }"/></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td align="left" colspan="2"><input type="submit"
                          id="submitBtn" value="提交" class="role-insert" />
                        </td>
                    </tr>
                </div>
            </tbody>
        </table>
    </form>
</body>
